package core.command
{
	import core.event.SocketEventID;
	import core.event.UnoEvent;
	import core.event.ViewEventID;

	public class PassUpdateCommand extends SuperCommand
	{
		public function PassUpdateCommand()
		{
			socketEvent = SocketEventID.PASS_UPDATE;
			viewEvent = ViewEventID.PASS_UPDATE;
		}
		
		override public function success(e:UnoEvent):void
		{
			var seat:Object = db.tableList[db.loginUser.table]["config"][e.data.seat];
			seat["cards"] = int(seat["cards"]) + int(e.data.num);
		}
	}
}